package com.yishe.entites.mysql;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "ys_staff_case_detail_info")
public class YsStaffCaseDetailInfo implements Serializable {
    @Transient
    private static final long serialVersionUID = -6215265136528777809L;
    @Id
    @Column(name = "id")
    private Integer id;

    private String caseNo;

    private String account;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date classTimeStart;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date classTimeEnd;
    private String isDeal;
    private String caseBatch;

    /**
     * 分配课程时课程的实际售价
     */
    private Double caseCurPrice;

    private Integer status;

    private String createId;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    private String lastUpdateId;
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date lastUpdateTime;

    /**
     * 一下未在数据库存储
     */
    @Transient
    private String dealName;

}